package com.ruoyi.worker.mapper;

import com.ruoyi.worker.domain.DailySalary;
import com.ruoyi.worker.domain.DailySalaryModifyLog;
import com.ruoyi.worker.domain.DailySalaryTotal;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface EmployeeSalaryMapper {

    List<DailySalaryTotal> listEmployeeSalary(DailySalaryTotal dailySalaryTotal);

    List<DailySalary> listEmployeeSalaryDetail(DailySalary dailySalary);

    List<DailySalary> listEmployeeSalaryDetailByBillIds(Long[] salaryDailyIds);

    int insertDailySalaryTotal(DailySalaryTotal dailySalaryTotal);

    int  insertDailySalary(List<DailySalary> dailySalaries);
    /**
     * @description:  修改临时工工资
     * @author 刘松山
     * @date 2021/12/23 13:52
     *
     */
    int updateSalary(DailySalary dailySalary);
    /**
     * @description:  修改汇总的薪资
     * @author 刘松山
     * @date 2022/1/11 9:53
     *
     */
    int  updateSalaryTotal(DailySalaryTotal dailySalaryTotal);
    /**
     * @description:  保存修改工资流水信息
     * @author 刘松山
     * @date 2021/12/23 14:03
     *
     */
    int  addModifySalaryLog(DailySalaryModifyLog dailySalaryModifyLo);
    /**
     * @description:  查询临时工工资修改流水列表
     * @author 刘松山
     * @date 2021/12/23 13:55
     *
     */
    List<DailySalaryModifyLog> listDailySalaryModifyLog(DailySalaryModifyLog dailySalaryModifyLog);

}
